//首页及根控制器
app.controller("app", function ($scope, $rootScope) {
  $.init();//初始化sui插件
	$scope.rootback = function() {
		window.history.back(-1);
	}
})
app.controller("home", function ($scope, $rootScope,serve){
	$rootScope.title = "首页";

  $scope.testToken = function() {
    serve.get("/api/signin")
              .then(function (user) {
                $.toast("没有过期!");
              })
  }
})
